package com.fate.securecheckplatform.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.fate.securecheckplatform.bean.TableForbiddenType;

import java.util.List;

/**
 * Author:   RandBII
 * DATE:   2020/1/10
 * Description: 违禁物品类型
 */
@Dao
public interface ForbiddenTypeDao {

    @Query("DELETE FROM TableForbiddenType")
    void deleteAllType();

    @Insert
    void addTypes(List<TableForbiddenType> types);


    @Query("SELECT  * FROM TableForbiddenType")
    List<TableForbiddenType> getAllTypes();

}
